package com.aaa.behind.controller;


import com.aaa.behind.service.IOOrderService;
import com.aaa.entity.Bid;
import com.aaa.util.PageInfo;
import com.aaa.util.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 * 订单信息 前端控制器
 * </p>
 *
 * @author whj
 * @since 2023-01-05
 */
@RestController
@RequestMapping("/o-order")
public class OOrderController {

    @Autowired
    private IOOrderService orderService;

    @GetMapping
    public Result findSname(){
        return new Result(orderService.findSname());
    }



    @PostMapping("rotationSearch")
    public Result rotationSearch(@ModelAttribute PageInfo pageInfo, Bid bid){
        return new Result(orderService.rotationSearch(pageInfo,bid));
    }




}

